module.exports = {
  development: {
    username: process.env.DB_USER,
    password: process.env.DB_PASS,
    database: process.env.DB_NAME,
    host: process.env.DB_HOST,
    dialect: 'mysql',
    logging: true,
    // dialect: 'sqlite',
    // logging: true, //显示日志
    // storage: path.resolve('/dbs', 'demo.db')
  },
  production: {
    // url: 'mysql://root:password@localhost/demo',
    username: process.env.DB_USER,
    password: process.env.DB_PASS,
    database: process.env.DB_NAME,
    host: process.env.DB_HOST,
    dialect: 'mysql',
    // 输出执行sql
    logging: false,
    // sqlite数据库
    // storage: 'dbs/sqlite.db'
  }
}
